package com.letfox.ad.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADReptRecordDao;
import com.letfox.ad.model.ADReptRecord;
import com.letfox.ad.service.ADReptRecordService;

@Service
public class ADReptRecordServiceImpl implements ADReptRecordService {
	
	@Autowired
	private ADReptRecordDao adReptRecordDao;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return adReptRecordDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ADReptRecord record) {
		return adReptRecordDao.insert(record);
	}

	@Override
	public int insertSelective(ADReptRecord record) {
		return adReptRecordDao.insertSelective(record);
	}

	@Override
	public ADReptRecord selectByPrimaryKey(Long id) {
		return adReptRecordDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ADReptRecord record) {
		return adReptRecordDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ADReptRecord record) {
		return adReptRecordDao.updateByPrimaryKey(record);
	}

	@Override
	public ADReptRecord selectByClickId(String clickId) {
		return adReptRecordDao.selectByClickId(clickId);
	}

	@Override
	public String selectSequence(String seqName) {
		return adReptRecordDao.selectSequence(seqName);
	}

	@Override
	public int reportRepeat(Map<String, String> map) {
		return adReptRecordDao.reportRepeat(map);
	}

}
